package com.iamdigger.queldorei.monitor.service;

import com.iamdigger.queldorei.monitor.service.interfaces.ISrvConnMonitorService;
import com.iamdigger.queldorei.server.RpcService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *  Server connection monitor
 *
 * Created by Sam Tsai on 2016/4/8.
 */
@RpcService(ISrvConnMonitorService.class)
public class SrvConnMonitorServiceImpl implements ISrvConnMonitorService {

    private static final Logger logger = LoggerFactory.getLogger(SrvConnMonitorServiceImpl.class);

    @Override
    public Object doMonitor(Object...mBeans) {

        if(mBeans.length != 1) {
            logger.error("############Invalid monitor request.");
        }

        logger.info("");
        return null;
    }
}
